'use strict'
import Vue from 'vue'
import Vuex from 'vuex'
import createLogger from 'vuex/dist/logger'
import getters from './getters'
import global from './modules/global'
import user from './modules/user'

Vue.use(Vuex);
const debug = process.env.NODE_ENV !== 'production';

export const store = new Vuex.Store({
    getters,
    modules:[
        global, user
    ],
    strict: debug,
    plugins: debug ? [createLogger()] : []
})